package com.rongc.client.freight.business.supply.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.rongc.client.core.network.api.AbsRequest;
import com.rongc.client.core.network.params.BaseParams;
import com.rongc.client.freight.ApiUrl;
import com.rongc.client.freight.UniApplication;
import com.rongc.client.freight.business.supply.model.SupplyBean;


/*
*  派单中的货源列表
* */

public class SupplyList2MatchApi extends AbsRequest<SupplyList2MatchApi.SupplyFindParams, SupplyBean[]> {

    public SupplyList2MatchApi(SupplyFindParams feedbackParams, Listener<SupplyBean[]> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getTruckList2MatchUrl(), feedbackParams, listener, errorListener, SupplyBean[].class);
    }

    public static class SupplyFindParams extends BaseParams {

        public SupplyFindParams() {
            put("userId", UniApplication.getInstance().getUserInfo().getUserId());
        }
    }


}
